package com.zhuang.prim;

/**
 * description: MGraph
 * date: 2022/10/2 13:40
 * author: Zhuang
 * version: 1.0
 */
public class MGraph {
    // 表示图的节点的个数
    int verxs;
    // 存放节点数据
    char[] data;
    // 存放边 就是邻接矩阵
    int[][] weight;

    public MGraph(int verxs) {
        this.verxs = verxs;
        data = new char[verxs];
        weight = new int[verxs][verxs];
    }
}
